#ifndef __THREAD_POOL__
#define __THREAD_POOL__
#include <my_header.h>
#include "workerInfo.h"
#include "taskQueue.h"
#include "tcpInit.h"
#include "epollCtl.h"
#include "affair.h"
#include "path_stack.h"

typedef struct threadPool_s{
    workerInfo_t workerInfo;
    taskQueue_t taskQueue;
    pthread_mutex_t mutex;
    pthread_cond_t cond;
    int exitFlag;
}threadPool_t;

int threadPoolInit(threadPool_t *pThreadPool, int workerNum);
int makeWorker(threadPool_t *pThreadPool);

#endif
